#!/bin/bash
source device/anlogic_dr1m90/Config.mk

# Jobs
export ANLOGIC_JOBS=16
# Target arch
export ANLOGIC_ARCH=arm64
# target chip
export ANLOGIC_TARGET_PRODUCT=dr1m90
# Toolchain
export ANLOGIC_TOOLCHAIN=toolchains/arm64/7.5.0/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
# Opensbi riscv
export ANLOGIC_OPENSBI=
# Uboot defconfig
export ANLOGIC_UBOOT_DEFCONFIG=anlogic_dr1m90_mmc_evb_defconfig
# Uboot dts
export ANLOGIC_UBOOT_DTS=anlogic-dr1m90-evb.dts
# Uboot image path
export ANLOGIC_UBOOT_IMG=device/output/anlogic_dr1m90/u-boot/u-boot.bin
# Kernel defconfig
export ANLOGIC_KERNEL_DEFCONFIG=anlogic_dr1m90_defconfig
# Kernel dts
export ANLOGIC_KERNEL_DTS=anlogic-dr1m90-evb-openamp.dts
# Kernel dtb path
export ANLOGIC_KERNEL_DTB=device/output/anlogic_dr1m90/linux/arch/arm64/boot/dts/anlogic/anlogic-dr1m90-evb-openamp.dtb
# kernel image path
export ANLOGIC_KERNEL_IMG=device/output/anlogic_dr1m90/linux/arch/arm64/boot/uImage.lz4
# Buildroot config
export ANLOGIC_BUILDROOT_DEFCONFIG=anlogic_dr1m90_defconfig
# Buildroot image path
export ANLOGIC_BUILDROOT_IMG=device/output/anlogic_dr1m90/buildroot/images/rootfs.ext4
# Boot script file
export ANLOGIC_BOOTSCR="parameter-emmc-fat-openamp.txt"
# Boot script image path
export ANLOGIC_BOOTSCR_IMG=device/output/anlogic_dr1m90/bootscr/boot.scr
# Bootgen config
export ANLOGIC_BOOTGEN_CONFIG="boot-apu-evb.bif"
# Storage size in 512B
export ANLOGIC_STORAGE_SIZE=0x747C000
# Dos part
export ANLOGIC_DOS_PART="name=boot,start=32K,size=32M,bootable,id=0x0e;name=rootfs,size=128M,id=0x83;name=data,size=-,id=0x83;"
# Boot partition
export ANLOGIC_BOOTPART_SIZE=0x2000000
export ANLOGIC_BOOTPART_FILES="$TARGET_IMG_OUTPUT_DIR/BOOT.bin $ANLOGIC_BOOTSCR_IMG $ANLOGIC_KERNEL_IMG $ANLOGIC_KERNEL_DTB"
# Extra files of image
export ANLOGIC_IMAGE_EXTRA_FILES=
